|
SDK/J Authentication Package ver1.0 RICOH Confidential |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is a CardService interface which provides the access to a file or a directory on the card.
| Method Summary | |
void |
appendRecord(FilePath file,
byte[] data)
Appends a data to the file. |
boolean |
exists(FilePath file)
Checks whether the file exists. |
FileInfo |
getFileInfo(FilePath file)
Returns the information about the file. |
FilePath |
getRoot()
Returns the path of the master file. |
byte[] |
read(FilePath file,
int offset,
int length)
Reads data from the file. |
byte[] |
readRecord(FilePath file)
Reads the current record. |
byte[] |
readRecord(FilePath file,
int number)
Reads a record with the given record number. |
byte[][] |
readRecords(FilePath file,
int count)
Reads consecutive records from the current record. |
byte[][] |
readRecords(FilePath file,
int number,
int count)
Reads consecutive records from the given record number. |
void |
write(FilePath file,
int offset,
byte[] data)
Writes a data to the file. |
void |
writeRecord(FilePath file,
byte[] data)
Writed a data to the current record. |
void |
writeRecord(FilePath file,
int number,
byte[] data)
Writes a data to the given record. |
| Methods inherited from interface jp.co.ricoh.dsdk.scard.option.security.CHVCallbackService |
setCallback |
| Methods inherited from interface jp.co.ricoh.dsdk.scard.option.security.SecureService |
provideCredentials |
| Method Detail |
public void appendRecord(FilePath file,
byte[] data)
throws VerificationException,
CardServiceException
file -
the path to the file.data -
the data to be written.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public boolean exists(FilePath file)
throws CardServiceException
file -
the path to the file.
CardServiceException -
if the service encountered an error.
public FileInfo getFileInfo(FilePath file)
throws VerificationException,
CardServiceException
file -
the path to the file.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationExceptionpublic FilePath getRoot()
public byte[] read(FilePath file,
int offset,
int length)
throws VerificationException,
CardServiceException
file -
the path of the file.offset -
the index of the first byte to be read.length -
the number of bytes to read.
VerificationException -
if the verification failed.
CardServiceException -
if the service encounterd an error.VerificationException
public byte[] readRecord(FilePath file)
throws VerificationException,
CardServiceException
file -
the path of the file.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public byte[][] readRecords(FilePath file,
int count)
throws VerificationException,
CardServiceException
file -
the path of the file.count -
the number of records to be read.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public byte[] readRecord(FilePath file,
int number)
throws VerificationException,
CardServiceException
file -
the path of the file.number -
the record number.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public byte[][] readRecords(FilePath file,
int number,
int count)
throws VerificationException,
CardServiceException
file -
the path of the file.number -
the index of the record to be read.count -
the number of records to be read.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public void write(FilePath file,
int offset,
byte[] data)
throws VerificationException,
CardServiceException
file -
the path of the file.offset -
the index of the first byte to be written.data -
a data to be written.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public void writeRecord(FilePath file,
byte[] data)
throws VerificationException,
CardServiceException
file -
the path of the file.data -
a data to be written.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
public void writeRecord(FilePath file,
int number,
byte[] data)
throws VerificationException,
CardServiceException
file -
the path of the file.number -
the record number.data -
a data to be written.
VerificationException -
if the verification failed.
CardServiceException -
if the service encountered an error.VerificationException
|
SDK/J Authentication Package ver1.0 RICOH Confidential |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||